package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.TableField;
import nl.coderight.jazz.form.field.TableField.AutoResizeMode;

public class CustomerDatabaseField extends GroupControl<CustomerDatabaseField>{

	private TableField CustomerDBManTable;
	
	public CustomerDatabaseField(String bindID){
		setTitle("CustomerDatabaseManagement");
		setBindID(bindID);
		createField();
		createLayout();
	}
	
	private void createField() {
		
		CustomerDBManTable = new TableField("customerManagement","customerManagementTable");
		CustomerDBManTable.setTitle("CustomerManagement");
		CustomerDBManTable.setAutoResizeMode(AutoResizeMode.OFF);
		CustomerDBManTable.getSelectionValues();
		
		CustomerDBManTable.addColumn("Name","name");
		CustomerDBManTable.addColumn("Contact","contact");		
		CustomerDBManTable.addColumn("Address1","address1");
		CustomerDBManTable.addColumn("Address2","address2");
		CustomerDBManTable.addColumn("City","city");
		CustomerDBManTable.addColumn("State_","state");
		CustomerDBManTable.addColumn("Zip","zip");
		CustomerDBManTable.addColumn("Country","country");
		CustomerDBManTable.addColumn("Phone1","phone1");
		CustomerDBManTable.addColumn("Phone2","phone2");
		CustomerDBManTable.addColumn("Fax","fax");
		CustomerDBManTable.addColumn("Email","email");
		CustomerDBManTable.addColumn("Comments","comments");
		CustomerDBManTable.addColumn("Type_","type");
		CustomerDBManTable.addColumn("Term","term");
		CustomerDBManTable.addColumn("Website","website");
		//CustomerDBManTable.addColumn("Location","location");
		

	}
	
		private void createLayout() {
			setLayout(new FormLayout())
			.addField(CustomerDBManTable);
		
	}
		
}
